//
//  HypotacticEastCell.m
//  CJRailTransport
//
//  Created by Hank on 2018/1/17.
//  Copyright © 2018年 amplity. All rights reserved.
//

#import "HypotacticEastCell.h"
#import "UIView+Expand.h"

@implementation HypotacticEastCell

- (void)layoutSubviews
{
    [super layoutSubviews];
    // 更新约束后的Frame
    [self.contentView setNeedsLayout];
    [self.contentView layoutIfNeeded];
    // 设置圆角
    [self setRadius];
}
// 设置圆角
- (void)setRadius
{
    // 设置圆角
    [self.leftStentsNumberBg radiusView:3 backgroundColor:[UIColor clearColor] borderWidth:0.5 borderColor:[UIColor blackColor]];
    [self.rightStentsNumberBg radiusView:3 backgroundColor:[UIColor clearColor] borderWidth:0.5 borderColor:[UIColor blackColor]];
    [self.leftStentsTopVINBg radiusView:3 backgroundColor:[UIColor clearColor] borderWidth:0.5 borderColor:[UIColor blackColor]];
    [self.leftStentsBottomVINBg radiusView:3 backgroundColor:[UIColor clearColor] borderWidth:0.5 borderColor:[UIColor blackColor]];
    [self.rightStentsTopVINBg radiusView:3 backgroundColor:[UIColor clearColor] borderWidth:0.5 borderColor:[UIColor blackColor]];
    [self.rightStentsBottomVINBg radiusView:3 backgroundColor:[UIColor clearColor] borderWidth:0.5 borderColor:[UIColor blackColor]];
}

//  去除分割线
- (UIView *)lineView
{
    return [[UIView alloc]init];
}

#pragma makr - Action
// 跳转到详细页面
- (IBAction)skipDetailAction:(UIButton *)sender
{
    NSString *vin = @"";
    if (sender.tag == 1) {
        vin = self.leftStentsNumber.text;
    }else{
        vin = self.rightStentsNumber.text;
    }
    _skipDetailBlock(sender.tag, vin);
}

@end
